package com.weiyi.chat.ui.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;

import com.weiyi.chat.MyApplication;
import com.weiyi.chat.R;
import com.weiyi.chat.common.base.BaseActivity;
import com.weiyi.chat.presenter.GroupSendPresenter;
import com.weiyi.chat.utils.ToastUtil;
import com.weiyi.chat.view.widget.HeadLayout;

import butterknife.BindView;
import butterknife.ButterKnife;

public class SendNoticeActivity extends BaseActivity {

    @BindView(R.id.hl_head)
    HeadLayout mHlHead;
    @BindView(R.id.content)
    EditText mContent;

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_send_notice;
    }

    @Override
    protected void initView() {

        mHlHead.setTitle("群发消息");
        mHlHead.setRightTextVisibility(true);
        mHlHead.setRightTextClick(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                String msgText = mContent.getText().toString().trim();
                if (TextUtils.isEmpty(msgText)){
                    ToastUtil.showTextToast(mAct, "请输入消息内容！");
                    return;
                }
            }
        });
    }

    @Override
    protected void initData() {

    }
}
